// 邮箱验证正则
export const emailPattern = /^[\w.%+-]+@[a-z0-9.-]+\.[a-z]{2,}$/i

// 邮箱验证函数
export const validateEmail = (value: string) => {
  return emailPattern.test(value)
}
